package cn.ryh.designpatterndemo.mediatorpattern;

/**
 * @ClassName AbstractMediator
 * @Description TODO
 * @Author RaoYH
 * @Date 2019/4/23
 */
public abstract class AbstractMediator {
    //定义同事类
    protected ColleagueOne colleagueOne;
    protected ColleagueTwo colleagueTwo;

    //中介者模式的业务逻辑 可以有多个方法
    protected abstract void  doSomething(Class c);

    public ColleagueOne getColleagueOne() {
        return colleagueOne;
    }

    public void setColleagueOne(ColleagueOne colleagueOne) {
        this.colleagueOne = colleagueOne;
    }

    public ColleagueTwo getColleagueTwo() {
        return colleagueTwo;
    }

    public void setColleagueTwo(ColleagueTwo colleagueTwo) {
        this.colleagueTwo = colleagueTwo;
    }
}
